import { App } from 'vue'
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import { gameRoute } from '@/views/game/layout/utils/routes'

const routes: Array<RouteRecordRaw> = [
    // {
    //     path: '/snake',
    //     component: () => import('@/views/game/GreedySnake/Index.vue')
    // },
    gameRoute,
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export const setUpRouter = (app: App) => {
    app.use(router)
}

export default router